package com.seiya.cookit;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

public class RecetasBebidasActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recetas_bebidas);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu, menu);
        return true;
    }
    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    	switch (item.getItemId()) {
		case R.id.menu_inicio:
			Intent intencion = new Intent(getBaseContext(), MainActivity.class);
			startActivity(intencion);
			break;
		case R.id.menu_glosario:
			Intent intencion2 = new Intent(getBaseContext(), GlosarioActivity.class);
			startActivity(intencion2);
			break;
		case R.id.menu_mrecetas:
			Intent intencion3 = new Intent(getBaseContext(), LoginActivity.class);
			startActivity(intencion3);
			break;
		case R.id.menu_recetas:
			Intent intencion4 = new Intent(getBaseContext(), RecetasActivity.class);
			startActivity(intencion4);
			break;
		default:
			break;
		}
    	return false;
    }
}
